function ret = FlopsWatt(startTime, endTime, packedDouble, scalarDouble, watt)
  % Start of measure: time (st) and date (sd) 
  %sd=startTime(1:10);
  %st=startTime(11:19);
  
  % End of measure: time (et) and date (ed)
  %ed=endTime(1:10);
  %et=endTime(11:19);

  % Definition of vectors with start and end measure
  %startVector=datevec([sd ' ' st], 'dd_mmm_yyyy HH:MM:SS');
  %endVector=datevec([ed ' ' et], 'dd_mmm_yyyy HH:MM:SS');
  
  % Computation of time elapsed (in seconds) between start and end measure 
  %elapsedTime = etime(endVector, startVector);
  elapsedTime = (endTime-startTime)/1000;  

  % Computation of indicator
  if watt==0
    ret = 0;
  else
    ret = (((packedDouble*2+scalarDouble)/1000000)/(elapsedTime))/watt;
  end
endfunction

